package com.longcai.cm.base.config;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;

public class WxHashedCredentialsMatcher extends HashedCredentialsMatcher {
    @Override
    public boolean doCredentialsMatch(AuthenticationToken authcToken, AuthenticationInfo info) {
        System.out.println("AAAAAAAAAAAAAAAAAAAAAAA");
//        EasyTypeToken tk = (EasyTypeToken) authcToken;
        //如果是免密登录直接返回true
        return true;
        //不是免密登录，调用父类的方法
//        return super.doCredentialsMatch(tk, info);
    }
}